/**
 * Created by lxy_920912 on 16/8/8.
 */
window.onload=function () {
    indexModel.init();
    indexModel.run();
    editMainAttr.init();
    editSubAttr.init();
}
var indexModel ={
    url:"http://192.168.3.112:8080/config/",
    data:null,
    init:function () {
        indexModel.showDiv('mainAttrListDetail');
    },
    run:function () {
       mainAttrListModel.run();
    },
    showDiv:function (divId) {
        var detailList = document.getElementsByClassName('detail');
        for(var i =0;i < detailList.length;i++){
            if(detailList[i].id == divId){
                detailList[i].style.display="";
            }else{
                detailList[i].style.display ="none";
            }
        }

    }
}
